# -*- coding: utf-8 -*-
# 操作内容：
# @Software: PyCharm
# @File: login_api.py
# @Author: 一碗好酒（张智）
# @E-mail: 1473658931@qq.com, 
# @Time: 7月 08, 2021
# ---
from api.base_api import SellerBaseApi
from common.client import RequestsClient
from common.encry_decry import md5


class SellerLoginApi(SellerBaseApi):  #注意初始化中self的作业。
    def __init__(self):

        super().__init__()
        # self.host = 'http://www.mtxshop.com:7003'
        self.url = self.host + '/seller/login'
        self.method = 'get'
        # 请求参数构造为字典
        self.params = {
            'username': 'shamoseller',
            'password': md5('123456'),
            # 验证码固定
            'captcha': '1512',
            'uuid': '11yu'
        }

if __name__ == '__main__':
    resp = SellerLoginApi().send()
    print(resp.text)